Optimize trips service in localstorage