A crude attempt to group some vectors to make things faster.