Generate and use static tables