Refactoring of strided_vals