Use oj gem for non-jruby for JSON parsing speed
Faster implementation of this method