Optimize all EntityId::unserialize