Digital Read/Write performance improvements

Pulls GPIO read/write improvements into the trunk