Speed up token_queue parsing