manages cache size