Refactor autorestore.kak to make it faster
Refactor autorestore.kak to make it faster

jjthrash/kakoune,ekie/kakoune,danr/kakoune,mawww/kakoune,jkonecny12/kakoune,Somasis/kakoune,mawww/kakoune,Somasis/kakoune,lenormf/kakoune,occivink/kakoune,occivink/kakoune,casimir/kakoune,lenormf/kakoune,jjthrash/kakoune,casimir/kakoune,Somasis/kakoune,jkonecny12/kakoune,danr/kakoune,alexherbo2/kakoune,lenormf/kakoune,flavius/kakoune,alexherbo2/kakoune,occivink/kakoune,jkonecny12/kakoune,flavius/kakoune,mawww/kakoune,jjthrash/kakoune,alexherbo2/kakoune,Somasis/kakoune,ekie/kakoune,casimir/kakoune,casimir/kakoune,ekie/kakoune,jkonecny12/kakoune,mawww/kakoune,flavius/kakoune,danr/kakoune,alexherbo2/kakoune,lenormf/kakoune,occivink/kakoune,danr/kakoune,jjthrash/kakoune,flavius/kakoune,ekie/kakoune