This requires that the SQN field is large enough (8 decimal digits), in order to do in-place changes to the field in the CSV.
we probably should move to a more tree-like data structure than a hash table. But well, lookup is not the most computationally expensive part compared to the cryptographic operations.