Use a blocking call to retask to improve cache worker performance.

Fixes #59.