Better cache timestamp implementation for multiple files

Use the latest file modification date instead of the current method that can be repeated.