Reduce memory allocation at MidiInputDevice.