optimize common case request

Quick fix for the slowness problem of #4821.
remove shelve backend
remove list/dict memory backend
remove unused interface
Merge branch '4821-slowness'