Optimize dsPIC ioport methods.