Improve velocity resouceloader implementation, which gets velocity codes from redis online