Adding the ability to force ttl to be constant

fixed 506229d33fbb63b72514bfb341b1f5b39da02dcb

This change is definitely cleaner. 
However, I did not understand where map look ups come into play here. Do you mean to look up the value in the TtlConfig Enum?