Remove cache files and update .gitignore to ignore them