Use safe array when creating index in ArrayStorage