Not really. About the best you can do is to put the db in a RAMFS. For example, on Linux put the db in /dev/shm