Optimized tokenizer.