I struggle with some cramping too, and I've found what helps is to eat something salty before the ride ... breakfast for me is a bowl of oriental noodles ... and I also take a couple electrolyte tablets with breakfast. Then during the ride I try to eat salty foods and take more electrolyte tablets as the ride progresses.