Balls-into-bins with nearly optimal load distribution