is cached now resets the "onlystar" flag if needed

So that proto's with "is cached" will not be optimized away.