I like the theory of this comment. The actual numbers probably wouldn't work, but the theory is sound.
The payment for wrong prosecution would create a back pressure on the justice system which is currently only possible via media reporting, something generally only accessible to the powerful or otherwise sympathetic defendant. We'd need a category of dismissal which is "innocent", where a judge determines not only is the person "not guilty", but that actually, with proper investigation and application of thought, the prosecution could have determined innocence beforehand themselves. This should come with the payment and automatic complete expungement of all records, and an entry in the local newspaper of the declared innocence of the defendant.
Then the last piece of the puzzle would be outlawing police and prosecutor unions, and firing police and prosecutors who have poor records of sending "innocent" cases to trial. This would serve to create a pressure towards correct prosecution.