Something that makes me uncomfortable which is not directly touched upon on this article: in America, being a prosecutor is often a stepping stone to being a politician. Which (among other career imperatives) is an incentive to be a 'showboat' and win notable convictions.
The desire to convict also leads to some decisions that seem very wrong-headed from a common-sense perspective, like prosecuting young people for child porn for taking pictures of themselves, or imprisoning victims of domestic violence for not giving testimony...