Static functions are thread safe if they do not modify any other variables than those they create themself