Adding the ability to force ttl to be constant

this method could return a `public static final` that gets set during the static initialization. it would avoid map lookup and object creation for every call.