The real question - do you really need to hack around with in-memory maps and files when you could just use a database?