Optimizing validation