The FULLTEXT_SNIPPET_CREATE event is fired to late - after already loading the file. This can be a serious performance hit if the event will throw away the content anyway.
See for a use case
https://forum.dokuwiki.org/post/39889
I suggest keeping $text empty in the BEFORE event and move loading to the default action (if $text is still empty after the BEFORE event).