Multi-level cache implementation