On the curvature of optimal control problems