Refactored, mapped_file_stack will be used to manage a stack of open mapped_files, keeping track of mem usage and disposal of old persisted blocks.