ensure returned value from filters is not carrying a reference to a much larger array