Simplified caching for PHP 5.3+