You could use the persistent mode with a large cache. With 'large' I mean so that the whole database fits in memory. That way even table scans will not read from disk.
To persist an in-memory database, you could use the SCRIPT command, but you need to execute it manually.