I think that the police should be as integrated into the community as possible. Who here believes that if his job day after day, say a white cop working in a low class black area, and seeing Black people who have basically been reduced to criminality by economic poverty and inequality, wouldn't begin to see all Black people as animals. The CBD, in this case lets call it generalized pattern recognition, a highly developed intelligence and survival mechanism rather well developed in the human brain is an effective tool that has helped us survive as a species but one that can't be easily consciously turned off to protect us against the bad effects of stereotyping, the formation of bigotry.
But if police were better integrated into the community instead of being seen as predators on it by the community, and instead of always appearing to be the enemy with all the defensiveness and counter hostility that goes with that, perhaps such integration could include only enforcement work, but also positive work in the community. It is always better, I think, psychologically, to get positive feedback and good feelings from doing community good rather than just using only force to establish respect for oneself both internally and with the community.