Committing optimization changes