Optimize saving.