optimize hotload thread