subquota wip
fixing memory usage issues due to query logging