Times are changing thankfully. Obama has been ramping down prison sentences and mandatory minimums. Prison or jail rehab is a joke, an addict is not going to get clean until they really want to and they have to really want it bad.
The problem of illegal drug trade on the streets and so many overdoses is that the drugs are not regulated. Street dealers have no idea what they are getting potency wise which causes most ODs. Locking up dealers has done nothing and locking up users has done nothing.
Legalize a Federal distribution of narcotics for registered addicts. Take away as much profit from small dealers on up to the cartels as possible.