You can prevent BGP from installing routes into RIB by using "BGP Selective Route Download" feature. This feature is commonly used on Route Reflector deployments, where you dont really need to install the routes on the RIB, only receive them on BGP and pass them to your peers.
More Info:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/15-s/irg-15-s-book/irg-selective-download.html
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/xe-3s/irg-xe-3s-book/irg-selective-download.pdf