Make it more constant time