Optimal use of scarce information: When partisan voters are socially useful