Use a static ConcurrentHashMap for the Java core.

This prevents the need for creating new model instances while also keeping
things thread-safe (hopefully).