Significant performance improvements generating the Jacobian