Update logic for caching(only activate function if not using premium subscription)