Persist 50 items of input history in local storage.