I'm not sure about the reducing NaOH or KOH down to the metals by fire, but I think it would be a bad idea.
However, I KNOW that it would be a bad idea to have these two raw metals sitting around since any contact with water/moisture results in rather violent explosions.