Initialize cache and timeout lazily