Enhance caching. Now cache is read in whole device publish interval