Add modified time caching, if enabled. Closes #2.

Signed-off-by: crynobone <crynobone@gmail.com>