Fix super slow avatar images by making identifier lookup O(1) instead of O(n^2), on my iPhone that means 12s become few ms