I don't understand how these things get revealed in court. The cops are lying to secure warrants and charging documents, so why don't they keep lying when they're on the stand during a trial?
Make no mistake, they do lie to judges, or at minimum give incantations with no regard to their truth value ("I noticed a furtive movement"). But easily-disproven lies are riskier.