Optimize performance of category and budget