In the winter, when riding less, the cramps at night were really bad. A hot shower on the legs helped, if I was able to hobble over to the tub. I can't recall them happening at night since last winter, I think spinning the pedals must help keep the legs looser.
They used to suddenly occur after...