@ares, I added issue http://projects.theforeman.org/issues/4329 to 
refactor `with_taxonomy_scope` to optimize SQL