Persistent or severe leg cramps often are treated with medication