Optimize volume related templates