Limit cache writing window (chance of corruption) [BZ#1091404]

Signed-off-by: Petr Šplíchal <psplicha@redhat.com>