Use django-guardian's prefetch mechanism for object permissions
Currently, evaluating object permissions costs one to three queries for each row in a query. By using the mechanism described in https://django-guardian.readthedocs.io/en/stable/userguide/performance.html#prefetching-permissions, we can save a lot of query time.