choose the number of sort logs intelligently based on how much bucket
cache we can use, compress sort logs if --compress option is passed
bugfix to name indexing