Small cleanup (will ease future patches thanks to the unified add_residual pointer), no speedup at all
Changed paths: