Read this article ("Beach lawyers advised to stop patting officers on the back") and every one of the comments, about the "problem" of familiarity between defense lawyers and traffic cops.
The judges not the officers are the ones I watch.
I remember one time sitting in the courtroom and Judge Brown dismissed a case and called the old trooper up to the bench and said essentially this, I thought we both were going to retire before I dismissed a single one of your cases, meaning to compliment the trooper but leaving me somewhat discouraged.