add namespacing and check ttl for cached data