Caching the classmetadata instance in association filtering