Performance optimization on Numeric validator