more factoring out in S_utf8_mg_pos_cache_update