Amortising Trajectory Optimisation for Residual MPC Via Implicit Contact Differentiation | AMiner