Simplified cache implementation (for HHVM and simpleness' sake)