improve performance with accent cache (#326).