[Util] Actually GC the caches.
[Util] Don't reenter network disk cache GC.
[Util] Keep minimal sizes.
[Util] Better code.
[Util] Refactored cache size computing into separate function.