The best way to store variable across different widgets

Unfortunately no one answers my question so I will show my way to solve this problem.

I use public query vars with get_query_var and set_query_var functions to set widget__exclude variable across all queries.

Still not sure that it is the best way for this case but hope it helps somebody.