I'd consider to look into something called phosphatase. Its an enzyme relating to phosphorous metabolism which is destroyed by heat, I rely on raw nuts and raw potatoes, and make sure I get some active phosphatase in me at every meal. If you have time also, you might find info out there on migraine connected to B2 deficiency.