Parallelization of the inversion
Currently, the inversion of the headers is taking too much time. Initially, it is really fast and as soon as multiple time steps are appearing, it becomes slower and slower. This is due to the access that become more random.
A way to speed up this is to parallelize this operation. It can be done by splitting the work by time steps.