Reorganize client-side resultsdb checks to be much more efficient.