Refined check for cache turnoff threshold

Issue: SPR-10803
Polishing