Today the world is highly technological and well connected. Data grows massively every day, exponentially with time. Data handled by individuals or organizations are increasing day by day. Even though it shows positive signs, the main problem is, they do not have enough space to store their growing collection of data. With the increasing development of cloud storage services, individuals and organizations started uploading their data in the cloud storage space. It allows the client to store all types of digital data. It provides its service in three different models as Public cloud, Private cloud, and Hybrid cloud. The public cloud storage space can be shared among many users. Since many users sharing the cloud storage space to store their data, duplicate data contents being stored cannot be avoided. It may lead to poor utilization of storage space. Especially in the case of Image and Video, the wastage of memory due to duplicate copy is extremely high. An essential storage optimization technique called “Deduplication” can be employed to overcome this problem. But it takes time to find duplicate copies in the cloud. In a hash-based deduplication system, additional memory space is required to store the hash value of the digital data. To reduce the overhead caused by this process, we propose an optimization technique to optimize the performance of the text and Image deduplication system using an Enhanced Prefix Hash Tree.