I ride around the local city all the time, usually at speeds (on the roads) of 20 to 25 mph. It's not at all unusual for bikes to be pedalled at those sorts of speeds on the flat, so the simple answer to not getting pulled by the police is to look as if you're pedalling. It helps if your ebike doesn't look too obviously bodged together, I'm sure.
Areas where I take care are pulling away from lights and junctions if there are police or PCOs about, as popping a wheelie or out-accelerating the other traffic is a sure fire way to attract attention. I also slow right down on the cycle paths, in fact I tend to pedal along them pretty much all the time, with not much power assistance.
The police presence in my local city is so small as to make the chance of one seeing me remote, may be once in a month or two. In a couple of years of ebiking around there I've not once attracted any attention, apart from interested people coming up to me to chat about the bike when I'm chaining it up somewhere (that still happens a lot).
My advice would be stick to riding at speed on the roads, don't stand out from other cyclists too much, don't play the hooligan on paths or at junctions/lights and I doubt you'll even attract a glance from the police.