small optimization for unary kernel generator