Move cached ttl dict to its own util class