added attributes caching