Implemented local caching of videos from YouTube