Better management of the memmap file