Improved cache invalidation.