Multiple Output AIP Logic Function

I have an AIP logic function that takes 3 input parameters (strings) that filter an object set, perform an LLM task and outputs a struct. I want to collect the output for every unique combination of the 3 input parameters into an object so if a user requests the same input parameters I can re-use a previous struct response and don’t have call the LLM again.

How can I output a struct from the function and also collect a new object? It seems like AIP Logic only allows for one output.