Hi Ida, I'm not a doctor. :) I'm not sure as to the mechanism that causes blood sugars to spike (some metabolic thing with your pancreas I imagine) when taking statins. But blood sugar spikes can happen in the middle of the night and affect your sleep. Whatever we eat turns into glucose to be used as energy. It's not necessarily sugary things, but can be. Often times if we eat later than usual and/or maybe have an alcohol drink, it causes those middle of the night blood sugar levels to spike. Some people are fine, but others, like myself, have a horrible night's sleep when I do eat later and/or have a drink, or even dessert. So if statins are making some people have blood sugar spikes, and you're having poor sleep when taking them, then perhaps we can deduce a causal relationship. I wasn't always this way, but age got me. haha. I'm also a thyroid (Hashimoto's) person so there's that too. I learned a lot from Dr. Mark Hyman, M.D. on his podcast The Doctor's Farmacy. He's specializes in functional medicine that considers the individual's specific propensities. Every episode is so interesting. Very mind expanding. Hope that helps. Rest well. :)