Fixed find_best_keysize