ExpiringCache: calculating 'durationMillis' only once