Moved temp store ceation to SGE.