Changing order of tests to determine if cached ImmutableEntityEntry should be reused reduces CPU load when ImmutableEntities are loaded into 2lc