It's normal... If you feel like you were well-hydrated, the cramps are a good sign that you just pushed yourself harder than what you're used to. Just keep training/racing and tweek your bike fit around a mm here & there, and it'll get better.