Better heuristic for determining bucket size.