Gateway for tts with caching.