enfore first-write semantics in FileCache to avoid corrupted files