Optionally use global optimization for box optimization.