New York City, many years ago, had a solution to such robberies. They created the “Stakeout Squad”, which operated from 1968 to 1973, when it was disbanded.
What they would do is have police hide in the back of stores that were frequently robbed. When a robber showed up, the cops would blow them away. Over a period of five years, they killed 25 holdup men.
https://thatweemsguy.com/2020/06/20/whats-old-is-new-again/
Unfortunately, it happened that too high a percentage of blown-away robbers were of dark complexion, so the unit was disbanded.
Many moons ago, (2005) I had the pleasure of attending a Snubby Summit (snub nose revolvers only) for two days at the American Police Hall of Fame in Titusville, FL.
Legendary Jim Cirillo was a round table speaker & guest. What a story teller!! His tales of the stake out squads were intense and amusing at the same time. He was killed in a car accident July 2007.
It’s a good solution, though.
Jim Cirillo. He was in a boatload of shootouts.