Minor optimization to AttributeForm. Very slightly reduces the number of queries...