Reduce queries in uniqueness validation

http://rails.lighthouseapp.com/projects/8994/tickets/1285-patch-reduce-queries-in-uniqueness-validation

Makes all the sense in the world.