Except that in UK approx 95% of such offences are carried out be people with no prior convictions - so you don't weed out that many attackers this way.
If that 95% assumes that people undergo background checks, my assumption is that number might decrease.
I'm not certain that crime is one where the perps are logically weighing the pros and cons.