Reduce the number of inodes used by image data cache

This will reduce the amount of inodes used by the image data cache.