Fix record store iterator positioning and state saving mechanism.