i was on opioids for a long time and memory issues are not unheard of for years after sustained use.