[core-66] Improving caching for jids in JIDFactory