More efficient object parsing by making ID to class mapping static