If the index on salary is not being used then try including a FIRST_ROWS hint in the inner query