Add macro for validator cache implementation Most of the validators use a cache. This cache looks the same in all of the validator classes. In preparation of reduce these code duplications a macro gets added to the validator base class which can be used by the derived validator classes. Change-Id: I5fe8a897f9b36e2a620e657bdd37ae0ea8b62c4c