docs: private int reduceTableSize() {
          int returnCode = HTODDynacache.NO_EXCEPTION;
          int count = this.entryRemove;
  
          if (count > 0) {
              int removeSize = 5;
              while (count > 0) {
              	int minSize = Integer.MAX_VALUE;
              	Iterator<Map.Entry<Object,Set<Object>>> e =  dependencyToEntryTable.entrySet().iterator();
              	while (e.hasNext()) {
              		Map.Entry entry = (Map.Entry) e.next();
              		Object id = entry.getKey();
              		ValueSet vs = (ValueSet) entry.getValue();
              		int vsSize = vs.size();
              		if (vsSize < removeSize) {
  
              			if (this.type == DEP_ID_TABLE) {
              				returnCode = this.htod.writeValueSet(HTODDynacache.DEP_ID_DATA, id, vs, HTODDynacache.ALL);  // valueSet may be empty after writeValueSet
              				this.htod.cache.getCacheStatisticsListener().depIdsOffloadedToDisk(id);
              				Tr.debug(tc, " reduceTableSize dependency id=" + id + " vs=" + vs.size() + " returnCode="+returnCode);
              			} else {
              				returnCode = this.htod.writeValueSet(HTODDynacache.TEMPLATE_ID_DATA, id, vs, HTODDynacache.ALL);  // valueSet may be empty after writeValueSet
              				this.htod.cache.getCacheStatisticsListener().templatesOffloadedToDisk(id);
              				Tr.debug(tc,"reduceTableSize template id=" + id + " vs=" + vs.size() + " returnCode="+returnCode);
              			}
              			dependencyToEntryTable.remove(id);
              			dependencyNotUpdatedTable.remove(id);
  
              			count--;
              			if (returnCode == HTODDynacache.DISK_EXCEPTION) {
              				return returnCode;
              			} else if (returnCode == HTODDynacache.DISK_SIZE_OVER_LIMIT_EXCEPTION) {
              				this.htod.delCacheEntry(vs, CachePerf.DISK_OVERFLOW, CachePerf.LOCAL, 
              						!Cache.FROM_DEPID_TEMPLATE_INVALIDATION, 
              						HTODInvalidationBuffer.FIRE_EVENT);
              				returnCode = HTODDynacache.NO_EXCEPTION;
              				return returnCode;
              			}
              		} else {
              			minSize = vsSize < minSize ? vsSize : minSize;
              		}
  
              		if (count == 0) {
              			break;
              		}
              	}
              	removeSize = minSize;
              	removeSize += 3;
              }
          }
          return returnCode;
      }