I was reading something a few months ago that would take something like:
SELECT first, last FROM contacts where status = 'active'
and turn it into:
SELECT first, last FROM active_contacts
It's definitely not a stored procedure and I'm pretty sure it's not a prepared statement. I'm also positive what I was reading did not involve temporary tables or anything like that. It was something that didn't modify or move the data in any way.
Thanks in advance!