Add 'stampede protection' to the caching logic.