Make validUntil and cacheDuration configurable