add cache metadata per entity
in progress