Memoize and properly handle data errors