#43382Optimize clearing file backend caches
Description
During concurrent requests it might happen that one request flushes a cache that is stored in the filesystem and another different request tries to recreate the data. This will lead to race conditions if the cached contents are large.
The idea is to move the current cache to a temporary location and then remove it.