optimize byte sequence search