Better default cache and array handling