abstract storage from key check