Make cache timeout overridable