New classForPropertyNamed method with constant time lookup