Cache last command