Optimized memory in DigitalReadCommand