First - the permanent solution here is to clean up your data. Using functions like LTRIM, RTRIM, UPPER, LOWER makes your not SARGEable. In other words your queries can slow to a crawl because it's impossible for SQL Server to retrieve the data you need from an index without scanning all rows.
For instance, this query is writing rtrim(LOWER(Title)) five times:
Enter the APPLY + VALUES inline aliasing trick
This is something I came up with some time ago at first to simplify my code but I later discovered some occasional performance benefits which I'll demonstrate. First some sample data:
use tempdb;
go
create table dbo.sometable(someid int identity, somevalue decimal(10,2));
insert dbo.sometable(somevalue) values (100),(1050),(5006),(111),(4);
Let's say we have a query that takes a few variables or parameters, performs a calculation on them and uses that value throughout a query. Note the case statement below.
declare @var1 int = 100, @var2 int = 50, @var3 int = 900;
select
someid,
somevalue,
someCalculation =
case when @var3 < somevalue then (@var1 / (@var2*2.00))+@var3 else @var3+somevalue end,
someRank = dense_rank() over (order by
case when @var3 < somevalue then (@var1 / (@var2*2.00))+@var3 else @var3+somevalue end)
from dbo.sometable
where case when @var3 < somevalue then (@var1 / (@var2*2.00))+@var3 else @var3+somevalue end
between 900 and 2000
order by case when @var3 < somevalue then (@var1 / (@var2*2.00))+@var3 else @var3+somevalue end;
We can simplify this query like this:
select
someid,
somevalue,
someCalculation = i.v,
someRank = dense_rank() over (order by i.v)
from dbo.sometable
cross apply (values
(
case when @var3 < somevalue then (@var1/(@var2*2.00))+@var3 else @var3+somevalue end)
) i(v)
where i.v between 900 and 2000
order by i.v;
Each query returns identical results. Now the execution plans:

Not only have we simplified our query, we've actually sped it up. In my original query the optimizer had to calculate the same value twice and perform two sorts. Using my inline aliasing trick I was able to remove a sort and a calculation