But you don't even need to get to this stage. If you have 99% conviction rate, people will just stop doing crime, starting with the ones for which crime was just a marginal thing anyway (maybe even for the adrenaline rush), and as a result you'll have even fewer crimes to prosecute. It's a positive feed-back loop.
And you don't need to put people in prison. Something like China's social credit is coming everywhere. Steal a bike, you pay double for everything.