Significant speedup of rnadistance scoring