The current approach is going through a collection to store a file as a SingleFile datanode. This is not necessary and a new strategy should be implemented that goes directly from the file to the SingleFile.
The file to modified is https://github.com/H2020-OpenModel/ExecFlow/blob/main/execflow/data/cuds.py