Judges are very much "brainwashed" too, and by design. The judges should apply the law, and the same case should ideally lead to the same verdict regardless of the judge.
With the caveat that this applies to sane legal systems, and not the ones where "making examples" etc are part of the system.