I do the same with marmalade, and it seems to work well.
I've realised that in my case, high-salt food is often the cause of the pain. There's a possibility I have periodic paralysis, which would explain that link; since sugar always makes my muscles go floppy, it's feasible that it's relieving...