Use flat when possible in values_list, pass id in queryset to avoid the join