Performance increase for gazetteer parser