A monkey patch to speed up Rails's json generation time