Big optimisation on download code for mac checking