[DF-1469] Recovered code which checks sprites last modification date before launching MD5 calculations. (reverse-merged from commit 8575055f3f3df9046ff1e509dc1294996a499fb6)