Optimize the lexical scanner a little