Control of thermal effects in fast-switching femtosecond UV laser system