mmap could greatly improve the performance of .at(…, key=…).session() - https://stackoverflow.com/questions/5917047/delete-insert-data-in-mmaped-file - https://stackoverflow.com/questions/50466557/python-write-content-into-existing-file - https://stackoverflow.com/questions/64145647/why-is-mmap-in-python-so-slow