improve performance with big integers