Tried to keep two files to cache query results.

Fixed the infrequent bug that one of two parallel queries got 404 when
the other query cached fresher results in parallel.