optimization

Reduce cpu cache misses on host machine by reordering the unrolled loop
statements (read + 0, then +1 offset, for better prefetching).