The logic looks great, but I wonder if what's going on would be more transparent if we included ttl settings explicitly in settings.yml. Not a merge blocker, just wanted to pass the idea by you.