Resource semaphore query compile waits
RESOURCE_SEMAPHORE_QUERY_COMPILE isn't aided by more memory in older versions of SQL Server. Since you're on 2014, you can use Trace Flag 6498 if you're on certain patch levels. 

That TF increases the large query compile gateway dependent on the amount of memory in your server.