making getSpikes() even faster