Improve valkey-search build time, by checking if there are redundant compilations or anything else which can be optimized