Capture Extended Events Histogram only during time window
So I've solved it.

I created a table with xml column and I'll query the sys.dm_xe_session_target directly with a scheduled job right before stoping the session and save the xml result to my table (which will be persisted).