On top during sex

I like to be on top a lot but lately my legs start cramping cause I have to bend them a little, which makes me want to switch but he says it feels good and doesn't want too. And I can get off when I'm on top rather then when he is. What can I do to so they don't cramp up?