Convert from table lookups to local the last one