One good optimization would be caching the first ~512 bytes of each file—enough to make libmagic-based programs (which includes a lot of search-indexing systems, grep&#x27;s binary-file-skipping, etc.) happy. With this in place, &quot;opaque&quot; files that an indexer doesn&#x27;t want to look into could be left in the cloud, while only the files that actually need to be content-indexed would be downloaded.