I've brushed up my old PR #14 to make AssetRegistry compatible with the latest JSON version. The other optimisations seem still useful.