perf: cache only JSON payload validation functions