asyncshell: refactored it not to use files to store data