Retrieve only defined set of variables in historic process instances

With historyService.createHistoricProcessInstanceQuery() we can retrieve either no variables along with process instances or all variables for all process instances.
However I need to retrieve only limited set of variables(to show them in UI for each process instance - kind of summary) to avoid performance issues(process instances may have huge sets of variables with huge values).
Can you suggest some existing solution? Or custom query is the only solution for my problem?

Right now, the includeVariables will add variables, and they can be filters with methods like .valueEquals() and the like. However, limiting the variables by name is not part of the query API, but I agree it would be a nice to have.