change cacheloader that can return nulls to return optional

so to avoid cacheload exceptions