FIX: a recycle issue in Document.geLastModified which can lead in a OOM condition. Also improved stability in multithreaded environment.