private static boolean isRouterEncrypted(BlobId blobId) throws IOException {
    // TODO: would be more efficient to call blobId.isEncrypted()
    return blobId.getVersion() >= BlobId.BLOB_ID_V4 && BlobId.isEncrypted(blobId.getID());
  }
Utility to check whether a blob was already encrypted by the router.
@param blobId the blob to check.
@return True if the blob is encrypted, otherwise false.
ambry-cloud/src/main/java/com/github/ambry/cloud/CloudBlobStore.java