Added caching of photo metadata