Even if it is a criminal offense, a prosecutor still has to bring charges. No prosecutor is ever bringing charges against a cop unless there is an absolute media frenzy that pushes it beyond the point it can be ignored.
Prosecutors need cops. Cops bring them cases. Cops testify in their cases. If they piss off the cops they can't do their job.
This is fixable. Many jurisdictions have a provision for outside prosecutors appointed by courts.