make vector stats faster