cache: Speed up cache rebuild by caching archive metadata requests