Improved performance of table view by caching photos that were already loaded