shrink stack mem usage after we are done with it