Rework cache of JSON decompositions.
Add profiling code