Check opts.search_zip_files before calling is_zipped. This should improve performance.