Introduce inmemory option