Don't use cache before the initial sync is finished (fixes #422, refs #535)