It is currently possible to override RDF::URI::CACHE_SIZE directly with = (with warnings printed to STDOUT) only before the cache has been initialized. There's not a clean interface for setting up the cache when it has already been touched (e.g. in a Rails initializer).
Should we be thinking about better ways to control the cache size during application startup or at runtime?