Change layout to be static precomputation.