Speed up category filtering