Optimizes generating stock and improves white space handling in category filter