I think that cooking the rock will only work if the rock has always remained in low nutrient water.
I purchased my rock in '88 from someone that was breaking down his tank. These were the days of LPS/softies and 55 or 65k lighting. In those days, I used inefficient skimming with O3 but never had r/o. The well water had 50 ppm nitrates and phosphates were foreign to me.
If your rocks spent a good amount of time in high nutrient water, like mine did, "cooking" as described above is not the answer. With the returnb of light, algae will continue to grow until these nutrients leach completely out of the rock.
It took excellent water quality, lots of GFO, and time (> 1 year) before the battles with algae disappeared. Life without light was definitely not the answer in my case.
If your rock has not suffered from chronic nutrient excess then a "cook" may control the acute flare.
my $ 0.02