Reducing crossbar costs in the match-action pipeline