Small speedup via a single-byte check