Looking up characters in xmlXPathTranslateFunction is slow with large translation strings.
xmlXPathTranslateFunction