[data] Improve file name handling and removal in CachedDataSink

This ensures that all files are tentatively removed.
4 jobs for data_improve_file_handling in 4 minutes and 30 seconds (queued for 7 seconds)