Added negative TTL guard for CachingStateRepository