Optimize grunt tasks