Pool size optimization