Less memory use on BSF

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>