Use internal object for scan cache. Check timestamp.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>