add optimized encoding for small bit width operations