Speed up code Ideas Please

Basically picking 3 random images from a collection… How to make it quicker ?

export function button1_click(event) {
wixData.query(“Images”)
.find()
.then( (results) => {
let randomNumber1 = Math.floor((Math.random() * results.items.length));
let randomItem1 = results.items[randomNumber1];
$w(“#image1”).src = randomItem1.image;
console.log(randomItem1);
let randomNumber2 = Math.floor((Math.random() * results.items.length));
let randomItem2 = results.items[randomNumber2];
$w(“#image2”).src = randomItem2.image;
console.log(randomItem2);
let randomNumber3 = Math.floor((Math.random() * results.items.length));
let randomItem3 = results.items[randomNumber3];
$w(“#image3”).src = randomItem3.image;
console.log(randomItem3);
});
}

I started thinking about caching the collection, then got to thinking that if I preload them into a hidden gallery and then randomize from the gallery ? What do you think ?