The only thing that relieves my stiffness is walking, even if only for a couple of steps.
Occasionally, especially in the middle of the night, I try gently massaging my foot and leg, and sometimes, I will add moist heat under the thighs, but usually, I end up carefully and slowly getting up, putting shoes on, and walking a few steps.