Reducing current draw on using CMOS logic gates