This should hopefully fix vectors running out of memory