Fix divisibility check slowing down call