Cache PORD and PORTB values locally