Optimized Vector Code