Simple trigger caching, needs to be tested with real implementations, Fixes #1