Optimized REST API config for Heroku