docs: String getKeyPrefix(StatementPartitioning partitioning, DeterminismMode detMode, String joinOrder) {
          // no caching for inferred yet
          if (partitioning.isInferred()) {
              return null;
          }
  
          String joinOrderPrefix = "#";
          if (joinOrder != null) {
              joinOrderPrefix += joinOrder;
          }
  
          boolean partitioned = partitioning.wasSpecifiedAsSingle();
  
          return joinOrderPrefix + String.valueOf(detMode.toChar()) + (partitioned ? "P#" : "R#");
      }