Save context after each completed operation.