use regex instead of distinct
regex
cache