Fix: Reuse $cacheValue instead of retrieving it again from cache

Closes #443