Why is lyx2lyx not creating new files, but returning the whole file as the result of the command? Not exactly nice use of memory... and quite surprising to me... (just try my zlib patch and see how...)
I also think this is wrecking havoc with compressed files. IMHO lyx2lyx should take one file and create another, and return the name of the converted file. -- Lgb