Optimize for ruby/rails project