Only update weights if they have changed (reduces write load on datastore)