Make sure the key cache is properly created if not available.