This implementation can be used as a quick hack when the performance of streaming validation is not important.