Cache R objects with automatic pruning
