store board size in thread-local storage