Built working batch prediction to significantly increase speed. However there is a suspicious bug when the set size becomes 64 - the kernel matrix becomes non-PSD.