util/disk_cache: support caches for multiple architectures