Adding TTL and cache expiration