Adding DirectMemory cache