Params per terms aggreations

I have terms aggregation just after date histogram aggregation, each sub-bucket should apply filter on extra params based on nested bucket keys.
since I can't access the bucket keys I just make it as array of aggregation, each with (date, term) key and parameter is attached based on the keys, the problem is the params are too long and the aggregation are also too much it might reach 400 :disappointed::disappointed::sob:.

any Idea how to enhance the query for aggregations like this :pleading_face: