Wow, I never thought about prisons as commitment devices for drug addicts. Thanks for sharing your experience.
Despite the usefulness of prison in your case, there is plenty of research showing that alternative means to incarceration are better for everybody (for the offenders and the taxpayers). For example, this paper shows a drop of 40% in recidivism for electronic monitoring instead of incarceration: http://www.nber.org/papers/w15602. Also, there is a lot of evidence from drug courts. This is one example: https://crimesolutions.gov/ProgramDetails.aspx?ID=70.
I am not affiliated with Promise.