Writing index files during the simulation
A possibility would be to write only the first half of the index files during the simulation and simply completing them when reading. Indeed writing the current state of the simulation requires only the information that we already store in the particles and this can be done at more or less the same speed than the snapshots.