Re-ordered triming and flashing of reads