Just a thought, but your leg cramping may be from dehydration especially if in the calves.
As for as cravings, a sugar free popsicle or pudding might satisfy your sweet tooth. Also I used to snack before bedtime, now I substituted that habit with a nice hot decaf green tea. It has worked for me. Remember, craving are really only in your head.