#define ENCODER_OPTIMIZE_INTERRUPTS  works on Arduino Due.