This introduces a more_data_to_fetch which allows to not write immediately the snapshot
if we need some more data to fetch in other iterations of the loop. Prior to this
commit, it was implied that the store_data could only be called once. It's a limitation
that needs to change for some ongoing optimizations in the loader git.