Let's do this once and just pass it around (or make it a global).

The code is not the most well-encapsulated, but avoiding doing the same work on each blob of json would be nice.