Optimized to use json object in place of filesystem for heroku