optimisation & factorisation of bootsalt in saltcloudmode