:w will touch the file (update mtime) whether you've made changes or not
:x will only update mtime if the file contents are actually changed
Can confirm. I have accidentally typed :X many times, but have never accidentally encrypted a file