Rego functions for cache write and read

Implement Rego built-in functions for accessing the TSA cache.