Fix memory cache callbacks on next tick. Closes #46