Hi Ajitha Deborah D,
Are validation checks also reading data from the database? If so, I would reduce the time to get that data in, using XPath (to prevent all data from being consumed) and use indexes. If feasible (from data/memory size), load data to validate against, in a List and use list operations to perform tasks.
Go Make It