add test for storing date
cache retreaved documents in memory