Optimize rate lookup