rails 4 optimization for heroku