This isn't clever - pr_pentity_represent has a bulk option, but this reverts it to row-by-row representation even when pr_RoleRepresent is called in bulk.