reduce some duplicate queries in /contract/all page load