One could argue that deterrence should be a major factor just because of demographics of US prison system. For example look at Singapore/Indonesia/Philippines and how they solved drug trafficking problem.
US for sure could learn a lot from Singapore
Rehabilitation already exists for minor crimes and first-time offenders, but the people who end up in actually prison are wayyy past any rehabilitation, its not their first rodeo