With C++20 you can use consteval to compute the table(s) at compile time from template parameters.