LZO optimization: check input buffer bounds less frequently if padded