Sort an initial tier of files into a symlink tree of approximately equal-sized buckets.  Very functional python, would be easy to thread if you want a quick speedup. The code wouldn't look as nice though.