Patent ID: 7185011

Claim:
A computer-implemented method, comprising: generating a plurality of subdirectory names, wherein each subdirectory name is random and unique relative to each other name of the plurality; creating a plurality of cache directories, and naming each according to one random subdirectory name generated, such that each cache directory is uniquely associated with a random subdirectory name; storing a plurality of files under the plurality of randomly-named cache directories such that a stored file includes a random name in its path unknown to malicious content and thereby cannot be invoked by the malicious content to execute, including when the file has a predictable filename; maintaining an index including a directory name for each of the plurality of randomly-named cache directories, and for each directory name, maintaining a file count of a number of files stored therein; and automatically balancing the files among each of the plurality of randomly-named cache directories such that the count associated with the number of files in each cache directory remains below a threshold count, to avoid degraded performance.