Updated to cache properties for mac ui element.