send a calculated value back into the loop without resetting

You would have to use Flow Variables to control when the file storing you intermediate information would be read and stored.

Sometimes such a setting can be somewhat over-engineered but it would work.

Maybe you could provide us with an example demonstrating your exact setting (without giving away any secret data). Then we could address your specific situation.