trying to speed up the unique field processing