cat-file: split batch_one_object into two stages