Commit shared preferences

To prevent overlapped writes
Usage data commit is running in a background task, so it will not reduce performance