Moves heavy imports inside functions, to speed up the start time
requested review from @fima
assigned to @fima
approved this merge request
merged
mentioned in commit b73ef9a0