Speeding up sequence processing