support changing the cache size completely, i.e. shrinking works as expected