Optimizing validators