docs: ObjectMetadata toObjectMetadata(ObjectMetadata metadata, CryptoMode mode) {
          return mode == CryptoMode.EncryptionOnly && !usesKMSKey()
                 ? toObjectMetadataEO(metadata)
                 : toObjectMetadata(metadata);
      }