Remove unused MPI data tag.
Speed up execution by precomputing indices of input/output ports before main execution loop.