Race condition ttl

Rails uses Entry objects to pull this off, but we don't have them, so what do you think of just using them where they are needed ?

@ccocchi