Speed improvements to CTJSON.