SQL Join in tasks query with variable

Hello,

I see you use outer SQL Join in tasks query with variable. In case if variables appear in where clause
this outer join can be replaced with inner. This makes very big difference in the performance of the sql query.
I tested it on Oracle with querying the tasks by task variable.
I hope you can add those optimizations.

Thanks,
–MG