One-step differentiation of iterative algorithms