Ligature code needs hash tables or too slow