fixed GB_Cache/CacheAll bug
avoid unnecessary resizes of giantbuffer