Refactored _memblockimpl into its own template param