Improve speed by caching purchased products values, and all parents values. Also only perform the check to hide products once on the store page