I'm not totally sure what you're trying to cache -- generally, you don't want to cache rendered BB code as it has a lot of variables (permissions, styles, languages, etc).
But there isn't really a way to extend this class, short of some pretty extensive hacks which I couldn't really recommend.