Add boolean flag for optimized input type filtering