Avoid excess query

Iterating objects manually here avoids an excess query that developers can't optimize out of the method.