use a more memory-efficient structure to hold a long indexed file list
(cherry picked from commit 1357e2b) [r=Maxim.Mossienko]