Removed dead code from removed literals support
Write to redis only when the object isDirty