[wip] Rework the code loader to be as lazy as possible