Restore Optimization Flags