Optimization for IE11 event handling.

Event handler called multiple times and if storage holds significant number of records that kills the browser on each iteration when it attempts keep values in sync. This fix aimed to reduce number of dummy calls when stored value hasn't changed, and optimize its sync logic.