Prevent cache thrashing