Optimization with table access.