added cache argument in getHessian() (for PML)