If you feel that 40 mph speed is the way to stay safe on public roads, then it's likely that you've bullied your whole life by drivers to believe that.
I've been cycling among traffic since the late 80's, including a 10-week, coast-to-coast self-support ride from Seattle to Ocean City, MD as a teen.
As a bicycle messenger in my late teens in SF, Seattle & NYC.
I've had my share of close calls with motorists, but always know my rights as a public road user.
For majority of the world, bicycles are used as mode of transportation, respected among motorists on public roadways.
In the US, bicycles & motorcycles are considered toys, don't belong on the road as cars & truck.
Car culture in the USA have developed (mindset &) infrastructure suited for cars & trucks, everything else that can't keep up with motor vehicle speed is considered "unsafe".
It is only "unsafe" when entitled motorists decide to disrespect others on the road.
When you're on public roads, anyone has the right to be there just as much as the cars & trucks.
To change the mindset that only car & trucks belong on public roads takes all kinds.
After a lifetime of riding motorcycles from Honda's to Harley's, I finally bought a real mans bike in 2011, A Tomos Sptint moped. In Texas, mopeds are restricted to 30 mph top speed. The first time I took it out on a busy street it scared the crap out of me. In Dallas 30 mph is like begging someone to run you over just to teach you a lesson. I solved that shortcoming with a few hundred dollars in upgrades, which got me up to about 42 mph. That felt reasonably safe, as far as street bikes go. I'd much rather explain to a judge, than Saint Peter, but so far I've never had to."Ride the loophole" That is an epic term you've just coined, biknut.
Only one thing, though: Mopeds are defined in a lot of places as being speed limited to 25 mph. Or 28 mph. Limited to 750 W motor. Etc. At that point, it's not a loophole any more, but just praying that the local cops will not notice.
This was Black Sheep. I sold it after a year, because I didn't like having to register, and insure it. That's when I decided to exploit the loophole.
.