Also apply double cache for avi files.
When using double cache, do not increase the total memory cost.