To completely decouple the yaml file from your flow, you can create a separate flow that is triggered by a scheduler, e.g. every hour to refresh the file. inside the scheduled flow, you write the content of the yaml file into a non-persistent Object Store.
Whenever you need to access the file from any flow, you can simply load it from the Object Store by it's defined key.