In findLatestUtilizationH2, you're essentially making the pricing/utilization-join in Java-code. There exists a way to do that in basic SQL (e.g.
http://stackoverflow.com/a/3800572). That leaves us with an in-clause having unspecified number of elements. It should be possible to apply that in-clause in an outer select and use QUERY_OVERRIDE in a subquery, but I guess it depends on DB's query optimizer how efficient it is. And of course you could always construct a proper replacement SQL with correct number of ?'s programmatically. But, yeah, while it would allow much more room for DB-specific optimization, not all possible optimizations could be achieved with this trick.