Externalized memory caching, only insert into memory if smaller than 1/4 of cache size to reduce flooding