memory improvement on snapshot