licensing agreement optimization