MainMemory refactor
Cache interface changes