Socially optimal firm size