NF total_variation 4D  with memmaps