perf(schema): cache compiled YAML validation schema (#7002)