Made cache timeout configurable