Index files with presorted data in key-value pairs