Fixes a bug where if only excluded records needed to be downloaded from NCBI, download_sequence_records function would go into infinate loop.
Performance optimizations.