memory saving

Avoid deep copy when cache is enabled and repeat newInstance.