Cache testdat. Not sure yet this is a good idea but it sure cuts down on queries that seem unnecessary.