big optimization to save and validate hooks to not cause lots of single db queries