AFAIK, gain has everything to do with collector current. that is why I stated it had a gain of 40, because this is the min gain available according to the datasheet that is at a collector current that is greater then your load would consume.
But the datasheet is always just a best estimate...