Indeed, the problem with gov’t agent misconduct is that they are personally immune from civil liability for their conduct under the color of law.
One of the major reforms I would enact, if I had the magic wand to do so, would be to make each individual personally liable for any malfeasance on the job.
I know a guy that did just that through a lawsuit, and the person in question backed off real quick. Some appraiser in a county gov’t was trying to screw a developer on tax appraisal, and his lawyer not only sued to get the appraisal corrected, but countersued the appraiser himself, personally, and attached his house to the suit.
One variation: if malfeasance results in the employer losing a civil suit, every public employee involved is fired.
Of course, what happens then is the public employees will ensure the victim does not win a civil suit, by whatever means necessary.