[ticket/12759] Resolve query flooding while displaying large number of custom profile fields