The generation of index files is far too slow on large simulations. Here I am implementing a hashmap to speedup the process.