Optimized persistent vector