[OPENENGSB-3658] improved query interface performance

http://issues.openengsb.org/jira/browse/OPENENGSB-3658