MAINT: avoid side effects when computing log likelihood for the estimation of the score or hessian