redesign ttl
rewrite ttl, put expiration keys in memory
update