Use dynamically allocated buffers for RSearchKeywords