Improved performance of reading .res files