Optimized (cached calls to lex_get_real_buf_offset)