Cooptimizing Safety and Performance with a Control-Constrained Formulation