An Intelligent Approach to Cloud Storage