optional_optimization branch