Fix numeric storage id for cache wrapper

@icewind1991 as discussed