Improvement for caching and table_info handling for fields