adding support to lookup single query results in the ID cache first