Fully functional second factor caching