I see this is related to a different post https://community.mindstudio.ai/t/cloudrunner-not-persisting-returned-variables-between-function-and-display-blocks/1782. I have two run functions in my workflow, one to fetch input from the database and a second to save the output to the database. So, if ai.vars is cleared every time there is a run function block that might explain the lack of persistence.