Cache NBI ports.

MTOSI production is extremely slow when querying for the available
ports, so cache this information.