LiveRamp built a usage-based billing system for its TEE clean rooms by leveraging Spark execution metrics, avoiding additional processing overhead. The solution uses custom Spark plan nodes to preserve business context throughout query execution, enabling accurate attribution across customers and datasets without slowing workloads.