Speed up tokenizer and parser