You can move the Query into an action and at the end of the action, set a list with the query results (you can reference multiple entities). Then you just use the action instead of the query whenever you need to access the query. This is a beneficial way because you can also cache the results from inside of the action to use across your application to increase performance. You also don't have to have a structure to store the data.
[Clarification] ... you can reference the action from inside a function to retrieve an individual value that you want.