Change the convs array to an associative array and then when you do an add, add it by key=>value so that you can do look ups faster.