Indeed. The behavioral science would agree with you. There is no theoretical framework backed up by evidence that would suggest that prosecution and prison works as a deterrent. For punishment to actually work as a behavioral modification tool, it has to be consistent and immediate. Prosecution is neither. At lest getting caught red handed is immediate.