Added a small optimization to numeric filters