private static int getKeyRecordSize(byte[] key, String keyGenAlgo) {
      return VERSION_FIELD_SIZE_IN_BYTES + KEY_SIZE_FIELD_IN_BYTES + key.length + Utils.getIntStringLength(keyGenAlgo);
    }
Returns the key record size for the given key and key gen algo
@param key the key for which key record size is requested
@param keyGenAlgo the key gen algo used to generate the key
@return the size of key record for the given key and key gen algo
ambry-router/src/main/java/com/github/ambry/router/GCMCryptoService.java