a) The query might be empty, in which case this line will raise an index error.
b) It probably makes sense to cache this in-memory so that you don't need to execute this query for every workflow.  The easy way to do this is to use a dict, where the keys are tuples of `(rubric_id, algorithm_id)` and the values are the classifier models.