How to use global variable in streamlib?

Im using two staps of filtering:

  1. before joining
  2. after joining

After I apply filters after joining the whole code will be rerun and the joining process will be executed.

How can I save the joined table as a global variable, so tables will be not joined for the second time?

Try to study session state.