Just write objects.cache file once.

Fixes #5270