How to deal with indexes for gzfiles