I've posted many times about how my relationship with opioids (prescribed Rx, not street drugs) is improved when I'm good about taking my magnesium, which I started decades ago because it was supposed to help with atkins/keto. Many people have chimed in that what is likely happening is that Mg helps your ATP, and I'm probably just metabolizing it better. I've also seen other posts about Mg being an NMDA antagonist. If you're interested, those may be additional things you'd want to look into.