saved db hits by identifying category in higher function