Only train cloud when it is enabled