Assuming the file extensions and the to_X stay in sync - ok. I didn't want to make that assumption on a general basis. 
And I guess here performance doesn't really matter either.