BUG-7996: Use weak keys in SharedJSONCodecFactory