Automatic batch save to reduce memory overhead: