What type of function you need to evaluate at each patch? How long does it take to run with the simplest double-loop implementation? Your problem seems to have only 24 x 24 = 576 iterations ...