I want to upload .psd (Photoshop CS5) files to a subversion repository, and since the format seems so comprehensive (or maybe just bloated and convoluted), I'd like to just publish the core of the files, not useless metadata, thumbnails, or other things that would just take space or reveal unnecessary information.
So basically I'm looking for a tool that can help me clean up the files before committing them (something akin to pngcrush, but for PSD files), or instructions on how to perform that in Photoshop.
I'd like the files to retain the minimum necessary data to be edited again if necessary, and I do not need support for Photoshop versions prior to CS3, nor I use bleeding edge features such as 3D.
Edit: If you open a file with this tool, it will show how many metadata there is to PSD files: http://regex.info/exif.cgi. I'd like to get rid of the metadata at least, I'm sure the size will decrease even just by removing the embedded thumbnail and metadata.
Edit 2: This Windows tool shaves some 20KB of metadata from PSD files. It doesn't look like it removes thumbnails, but that's not a problem since I like the thumbnails as I use an enabler for them on windows. The tool is shareware, but could be of use to those interested in its other supported formats.