Use memcached if available.