efficiently split/sample from FASTA/FASTQ files on-the-fly