You might want to check with the FDA
There have been rare post-marketing reports of cognitive impairment (such as memory loss, forgetfulness, amnesia, memory impairment, and confusion) associated with statin use.
more at https://www.fda.gov/Drugs/DrugSafety/DrugSafetyPodcasts/ucm294367.htm
and
Statins are typically very well tolerated. Two risks that patients may be aware of are muscle-related complaints and an increased risk of developing type 2 diabetes
more at https://www.fda.gov/ForConsumers/ConsumerUpdates/ucm293330.htm
81 page PDF from 201 here: https://www.lipid.org/sites/default/files/articles/statinsafety2014update.pdf
“There have been rare post-marketing reports of cognitive impairment (such as memory loss, forgetfulness, amnesia, memory impairment, and confusion) associated with statin use.”
I was on statins and thought I was becomming senile.
Got off of them because of the muscle pain and my mental issues have cleared up.