Improve octet parsing performance