Fixed handling of cache keys as empty results caused cache keys to exist. :(