resolve a severe performance issue in validation