Passing Bytes to a Template Repeater

Hello All,

I have template repeater that displays images for a particular machine. These images are stored in a MySQL database as Medium Blobs. Here is an image.

Everything works perfectly. However, I want to optimize its execution. At this moment, I am passing unique ids and each template runs its own query.

Is there any way to pass a [byte] column? I have tried unsuccessfully and I need some help.

Thank you!