docs: public static Object getCachedValue(Record record) {
          for (; ; ) {
              Object cachedValue = record.getCachedValueUnsafe();
              if (!(cachedValue instanceof Thread)) {
                  return cachedValue;
              }
  
              cachedValue = ThreadWrapper.unwrapOrNull(cachedValue);
              if (cachedValue != null) {
                  return cachedValue;
              }
          }
      }