make small optimization to vector multiply/divide