Fixed bug#9339 - Poor stat generation preformance with dynamic fields.