Added dynamic dom caching