Fix incorrect caching behavior on Mountain Lion