SlowMemory refactoring