WIP: Enabled inmem. Works for somecases, smashes the heap on megatest -run