Make all foreach uses of buckets use cache