Optimized the ParametricUnivariateFunction.