UPDATE: stri_wrap vectorized over width and spacecost