Reduce amount of duplicated code in OCB bulk implementations