That's a terrible idea, because the taxpaying public loses.
A much better solution would be to put the offending police and prosecutors in prison. Revoke the police officers' law enforcement certifications so they wouldn't be able to get badges anywhere else. Disbar the prosecutors.
That would punish the actual perpetrators without impacting the general level of service to the public.