Uniform convergence of convex optimization problems