@kibao thanks for the benchmark. I'm fine going with "`in_array` with cache" :)