Added static for the sake of readability & optimization

Just nitpicking ;) as this function is not often called and furthermore not in critical sections