Based on this article, it seems that one answer might be further research on non-opioid painkillers. Sure, there will still be experimenters/thrill seekers who wind up with problems, but the people exposed through the prescription system (most?) will greatly be reduced.