Have a look at the DETERMINISTIC clause ...
http://download-west.oracle.com/docs...ps.htm#1005493