[server] Collect cache size on startup