add cache for all elements