Put all entities in shared_ptr right after creation.