Big optimisation on download code for mac checking
Speedup the mac calculation on upload
Merge pull request #36 from gissehel/speedimprovement

mac check changes