Reduce number of queries in submissions page.
Fix 344bf0c845.