I have a
.tar.gz file cannot be accessed randomly. All of the files up to the one you want must be decompressed.
You can try using a
.zip file instead, which will permit rapid random access. However the compression of many small files could be much worse, since zip entries are compressed independently and not able to use repeated information in the previous files to aid in the compression of subsequent files.