Make cache ttl configurable