What is the point of the mind wipe?
Why does Affleck get his mind wiped at all? So many other employees know what's going on, and the companies patent the technology (which puts the plans out in public). It would make little difference that one engineer remembers what he built.
Also, Uma says something like "No, he said he wasn't going to go through with the mind wipe" as if it's his decision.
Overall, however, I thought this was a decent film. Not nearly worth the scathing criticism being piled on it here.
There is one neat benefit to the mind wipe. Affleck gets to sack up with Uma again, but it's the first time. It's all new again. It would be like waking up one day and someone says "here's this hot girlfriend you've had for the past three years... you don't even have to buy her dinner. Just grab on to any parts you like and enjoy the ride."