Optimize tag cascade