Improved performance of stream checking by reducing queries from 3 to 1