OPTIMIZE event and getFn
OPTIMIZE cache