Improve contract validation performance when there are no lovs

Uncategorized