Using widget part of view only once time


I have the optimization problem with rendering only once part of my widget view. I am using Mustache to insert values into this view (so it must be inside widget - it uses widget variables). I am using Listing Layout widget in which I add my widget. It is loading 10 times per page like in a loop. How can I add part of code inside my widget view to render it only once independently from how many times widget is rendered?

Would caching be an option?