Hi,
I recently came across this document which tells about benefits of using DB join instead of FOR ALL ENTRIES.
In case you still want to enhance the performance of code then you can check the below doc.
http://scn.sap.com/docs/DOC-45849
Hope that helps.
Regards,
AL