A loophole in Rhode Island law that effectively decriminalized indoor prostitution in 2003 also led to significant decreases in rape and gonorrhea in the state, according to a new analysis published by the National Bureau of Economic Research.

“The results suggest that decriminalization could have potentially large social benefits for the population at large – not just sex market participants,” wrote economists Scott Cunningham of Baylor University and Manisha Shah of the University of California, Los Angeles, in a working paper issued this month.