I would suggest storing this sensitive data to Drupal variables instead of cache because cache can be wiped by arbitrary code. (which probably happens in your case).
Instead of cache_getcache_get
and cache_setcache_set
use variable_getvariable_get
and variable_setvariable_set
accordingly.