kata 18. perf tuned w/ hash instead of set